/*
 * @Author: your name
 * @Date: 2020-10-06 16:44:13
 * @LastEditTime: 2020-10-19 17:41:59
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \longh_web\src\apis\user\MaterialsDemand.js
 */
import request from '@/utils/request'

export function GetSearchPageList(data) {
  //获取产品需求MaterialsDemand分页列表
  return request({
    url: "/wenge/microservice-supply-consumer-web/user/materialsDemand/getSearchPageList",
    method: "POST",
    data,
  })
}

export function GetSearchinfo(data) {
  //获取详情
  return request({
    url: "/wenge/microservice-supply-consumer-web/user/materialsDemand/info",
    method: "POST",
    data,
  })
}

export function AddMaterialsDemand(data) {
  //添加
  return request({
    url: "/wenge/microservice-supply-consumer-web/user/materialsDemand/add",
    method: "POST",
    data,
  })
}

export function deleteMaterialsDemand(data) {
  //删除
  return request({
    url: "/wenge/microservice-supply-consumer-web/user/materialsDemand/delete",
    method: "POST",
    data,
  })
}

export function UpdateMaterialsDemand(data) {
  //修改
  return request({
    url: "/wenge/microservice-supply-consumer-web/user/materialsDemand/update",
    method: "POST",
    data,
  })
}

export function updateDemandStatus(data) {
  //解决需求
  return request({
    url: "/wenge/microservice-supply-consumer-web/user/materialsDemand/updateDemandStatus",
    method: "POST",
    data,
  })
}

// 产品分类级别
export function GetByParent(params) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/productCategory/getByParent",
    method: "GET",
    params,
  })
}

// 需求匹配
export function updateMatchStatusStatus(data) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/user/materialsDemand/updateMatchStatusStatus",
    method: "POST",
    data,
  })
}

// 查看推送
export function getProductEntPush(data) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/productCategory/getProductEntPush",
    method: "POST",
    data,
  })
}